<template>
	<view class="page-fade-in" :style="{opacity: pageOpc}">
		<template v-if="pageOpc">
			<view class="content">
				<view class="shop-name">{{shopname}}</view>
				<view class="operation-box flexWrap">
					<view class="operation-item flexWarpCenterColumn">
						<view class="operation-img">
							<image src="../../static/index/switch.png"></image>
						</view>
						<view>设备名称</view>
					</view>
					<view class="operation-item flexWarpCenterColumn active">
						<view class="operation-img">
							<image src="../../static/index/switch1.png"></image>
						</view>
						<view>logo墙灯光</view>
					</view>
					<view class="operation-item flexWarpCenterColumn">
						<view class="operation-img">
							<image src="../../static/index/switch.png"></image>
						</view>
						<view>氛围灯</view>
					</view>
					<view class="operation-item flexWarpCenterColumn active">
						<view class="operation-img">
							<image src="../../static/index/switch1.png"></image>
						</view>
						<view>射灯</view>
					</view>
					<view class="operation-item flexWarpCenterColumn">
						<view class="operation-img">
							<image src="../../static/index/switch.png"></image>
						</view>
						<view>门口灯光</view>
					</view>
					<view class="operation-item flexWarpCenterColumn">
						<view class="operation-img">
							<image src="../../static/index/switch.png"></image>
						</view>
						<view>氛围灯</view>
					</view>
					<view class="operation-item flexWarpCenterColumn">
						<view class="operation-img">
							<image src="../../static/index/switch.png"></image>
						</view>
						<view>设备名称</view>
					</view>
				</view>
			</view>
		</template>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pageOpc:0,
				shopname:""
			}
		},
		onReady(){
			setTimeout(() => {
				this.pageOpc=1
			}, 100)
		},
		onLoad() {
			this.shopname=uni.getStorageSync('shopname')
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	.shop-name{
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #FFFFFF;
		padding: 0 36upx;
	}
	.operation-box{
		margin: 24upx 36upx;
		flex-wrap: wrap;
		.operation-item{
			font-size: 24upx;
			font-family: PingFang SC;
			font-weight: 400;
			line-height: 34upx;
			color: #FFFFFF;
			margin-right: 20upx;
			margin-bottom: 26upx;
			width: 210rpx;
			height: 180rpx;
			background: #1D1C5C;
			border-radius: 16rpx 16rpx 16rpx 16rpx;
			justify-content: center;
			&:nth-of-type(3n){
				margin-right: 0;
			}
			.operation-img{
				width: 100upx;
				height: 100upx;
				margin-bottom: 14upx;
			}
		}
		.active{
			background-color: #535F88;
		}
	}
</style>
